from selenium import webdriver
from time import sleep
from selenium.webdriver.common.action_chains import ActionChains

driver = webdriver.Chrome()
driver.maximize_window()
driver.get('https://www.baidu.com/')

sleep(2)
context=driver.find_element_by_id("su")

ActionChains(driver).context_click(context).perform()
#模拟鼠标右键


sleep(5)
driver.quit()